package java3_13;

public class Person {
    String name;
    int age;

    public void price(){
        String x = "";
        int price = 0;
        if (age <= 14 || age >= 60) {
            price = 0;

        } else {
            price = 20;
        }
            System.out.println(name+"的年龄为:"+age+",门票价格是："+price);

        }
    }



